const state = {
  isRegister: false,
  popUpData: {},
  walletAddress: "",
};

const mutations = {
  UP_Register: (state, data) => {
    state.isRegister = data;
  },

  POPUP_DATA: (state, data) => {
    state.popUpData = data;
  },

  UP_walletAddress: (state, data) => {
    state.walletAddress = data;
  },
};

const actions = {
  // // 更新数据
  // update({ commit }, data) {
  //   commit("UP_Register", data);
  // },

  // 弹窗数据
  popUpData({ commit }, data) {
    commit("POPUP_DATA", data);
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
